Skip to content

#3060557 Use database schema instead of a database query #18

Open
manuee wants to merge 1 commit into8.x-1.xfrom
3060557
Open

#3060557 Use database schema instead of a database query #18
manuee wants to merge 1 commit into8.x-1.xfrom
3060557

Conversation

@manuee
Copy link
Contributor

@manuee manuee commented Jun 10, 2019

Issue links

https://www.drupal.org/project/database_sanitize/issues/3060557

Description

We're currently using $db_tables = \Drupal::database()->query('show tables')->fetchCol(); which isn't compatible with all drivers.

Proposed resolution
Use $db_tables = \Drupal::service('database')->schema()->findTables('%'); instead, which is compatible with all drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant